// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  compatibilityDate: "2024-11-01",
  devtools: { enabled: true },
  app: {
    head: {
      title: "用户管理系统",
      link: [
        {
          rel: "icon",
          type: "image/x-icon",
          href: "/logo.png",
        },
      ],
    },
  },
  css: ["~/assets/css/global.css"],
  components: [
    {
      path: "~/components", // 递归的去扫描所有的子目录
      pathPrefix: true, // 使用组件的时候是否要添加目录前缀
    },
    {
      path: "~/layouts",
      pathPrefix: false,
    },
  ],
  modules: ["@element-plus/nuxt", "@pinia/nuxt"],
  elementPlus: {
    icon: "DuyiIcon",
  },
  devServer: {
    port: 3008,
  },
});
